<?php 

class LsConsoleApplication
extends CConsoleApplication
{
	
	/**
	 * @param string $language the language that the source messages are written in.
	 */
	public function setLanguage($language){
		$language = LsLocale::getCanonicalID($language);
		parent::setLanguage($language);
	}
	
	/**
	 * Raised right AFTER the application processes the request.
	 * @param CEvent $event the event parameter
	 */
	public function onEndRequest($event){
		parent::onEndRequest($event);
		if(Yii::$autoload_errors){
			Yii::trace("Autoload errors:\r\n\t".join("\r\n\t", Yii::$autoload_errors));
		}
	}
	
}

?>